home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funjmp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  558 b   |  26 lines

  1. /*
  2. \funcref{fun\_jmp}{void fun\_jmp ()}
  3.     {}
  4.     {}
  5.     {getint16()}
  6.     {fun\_jmp\_true(), fun\_jmp\_false()}
  7.     {funjmp.c}
  8.     {
  9.         This function is executed when an {\em op\_jmp} opcode is read in the
  10.         binary makefile. Following the opcode, an {\em INT16} offset is
  11.         expected. An unconditional jump is made relative to the current offset
  12.         by repositioning the file pointer.
  13.     }
  14. */
  15.  
  16. #include "icm-exec.h"
  17.  
  18. void fun_jmp ()
  19. {
  20.     INT16
  21.         offs;
  22.  
  23.     offs = getint16 (infile);
  24.     fseek (infile, (INT32) offs, SEEK_CUR);
  25. }
  26.